how to debug deep learning programs